﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wedo.Recognition.Domain.Models; 

namespace Wedo.Recognition.Domain.Mapping
{
    public class RefundmentApply_Mapping : EntityConfiguration<RefundmentApply>
    {
        public RefundmentApply_Mapping()
        {
            ToTable("RefundmentApply");

            HasRequired(b => b.BankData).WithMany(m => m.RefundmentApply).HasForeignKey(b => b.BankDataId);
           // HasRequired(b => b.CheckRecord).WithMany().HasForeignKey(b => b.CheckRecordId);

            Property(s => s.OrderNum).HasMaxLength(500);
            Property(s => s.Approver).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.ApplyMan).HasMaxLength(50).HasColumnType("nvarchar");

            Property(s => s.CustomerCode).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.CustomerName).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.RefundmentReason).HasMaxLength(500).HasColumnType("nvarchar");

            Property(s => s.BankPerson).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.BankProvince).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.BankCity).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.BankName).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.BankAccount).HasMaxLength(50).HasColumnType("nvarchar");
        }
    }
}
